package org.meteorshower.employee_depart.util.enum_util;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import lombok.Getter;

@Getter
public enum TrainStatusEnum implements IEnum<Integer> {
    //未开始
    NOT_START(0),

    //进行中
    IN_PROGRESS(1),

    //已完成
    FINISHED(2),

    //被取消
    CANCELED(3);

    @EnumValue
    private final Integer code;

    TrainStatusEnum(Integer code) {
        this.code = code;
    }

    @Override
    public Integer getValue() {
        return code;
    }
}
